package com.yxb.evaluation.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yxb.common.annotation.Excel;
import com.yxb.common.core.domain.BaseEntity;

/**
 * 双向评价记录对象 evaluation
 * 
 * @author 林德炫
 * @date 2025-03-04
 */
public class Evaluation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评价id */
    private Long evalId;

    /** 订单id */
    @Excel(name = "订单id")
    private Long orderId;

    /** 评价类型 */
    @Excel(name = "评价类型")
    private String evaluatorType;

    /** 评分 */
    @Excel(name = "评分")
    private Integer rating;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 评价时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评价时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date evalTime;

    public void setEvalId(Long evalId) 
    {
        this.evalId = evalId;
    }

    public Long getEvalId() 
    {
        return evalId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setEvaluatorType(String evaluatorType) 
    {
        this.evaluatorType = evaluatorType;
    }

    public String getEvaluatorType() 
    {
        return evaluatorType;
    }
    public void setRating(Integer rating) 
    {
        this.rating = rating;
    }

    public Integer getRating() 
    {
        return rating;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setEvalTime(Date evalTime) 
    {
        this.evalTime = evalTime;
    }

    public Date getEvalTime() 
    {
        return evalTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("evalId", getEvalId())
            .append("orderId", getOrderId())
            .append("evaluatorType", getEvaluatorType())
            .append("rating", getRating())
            .append("content", getContent())
            .append("evalTime", getEvalTime())
            .toString();
    }
}
